package net.hmr_radio.hmrbot.controller;

import org.slim3.controller.Navigation;

public abstract class BaseLoggedInController extends BaseController {

    @Override
    protected final Navigation run() throws Exception {
        if (getLoginUser() == null) {
            return redirect("/");
        }
        return doRun();
    }

    protected abstract Navigation doRun() throws Exception;
}
